import com.simit.config.SpringConfig;
import com.simit.controller.UserController;
import com.simit.pojo.YuanShen;
import com.simit.service.YuanShenService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import javax.sql.DataSource;
import java.util.List;

public class App {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);

        System.out.println(ctx.getBean(UserController.class));
/*        YuanShenService service = ctx.getBean(YuanShenService.class);
        YuanShen yuanShen = service.selectByName("万叶");
        System.out.println(yuanShen);
        service.selectAll();*/
    }
}
